#include <stdio.h>
#include <time.h>

int sleep(unsigned ms){
    clock_t s = clock(), e;

    do {
        if ((e = clock()) == (clock_t)-1)
            return 0;
    } while (1000.0 * (e - s) / CLOCKS_PER_SEC <= ms);

    return 1;
}

int main(void){
    for (int i =10; i >= 0; i--) {
        printf("%02d\r", i);
        fflush(stdout);
        sleep(500);
    }
    printf("pow!!!\n");

    printf("short len:%lu, clock_t len: %lu, int len:%lu \n", sizeof(short), sizeof(clock_t), sizeof(int));

    return 0;
}
